package com.zhangjq.factorymethod;

import com.zhangjq.common.IPay;

/**
 * Created by Administrator on 2019/3/9 0009.
 */
public class FactoryMethodTest {
    public static void main(String[] args) {
        PayFactory payFactory = new TencentIPayFactory();
        IPay iPay = payFactory.create();
        iPay.pay();
    }
}
